/*
 * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package com.sun.corba.se.impl.ior;

import org.omg.CORBA.ORB;

import org.omg.CORBA_2_3.portable.InputStream;
import org.omg.CORBA_2_3.portable.OutputStream;

import com.sun.corba.se.spi.ior.iiop.GIOPVersion;

import com.sun.corba.se.spi.ior.TaggedComponent;

/**
 * @author
 */
public class GenericTaggedComponent extends GenericIdentifiable
    implements TaggedComponent {

  public GenericTaggedComponent(int id, InputStream is) {
    super(id, is);
  }

  public GenericTaggedComponent(int id, byte[] data) {
    super(id, data);
  }

  /**
   * @return org.omg.IOP.TaggedComponent
   * @author
   */
  public org.omg.IOP.TaggedComponent getIOPComponent(ORB orb) {
    return new org.omg.IOP.TaggedComponent(getId(),
        getData());
  }
}
